package com.zhanghu.hibernate.entity;

import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * @Author: zhanghu
 * @Description:
 * @Date: Create in 10:57 2020/1/8
 * @modified by:
 */
@Component("namesBean")
public class NamesBean implements Serializable {

    public String getName(ZkUser zkUser) {
        return zkUser.getUsername() + " " + zkUser.getName();
    }
}
